table of contents
lsm_fs_resize(3) | Libstoragemgmt C API Manual | lsm_fs_resize(3) |
NAME¶
lsm_fs_resize - Resizes a file system
SYNOPSIS¶
int lsm_fs_resize (lsm_connect *conn, lsm_fs *fs, uint64_t new_size_bytes, lsm_fs **rfs, char **job_id, lsm_flag flags);
ARGUMENTS¶
- conn
- Valid connection.
- fs
- Pointer of lsm_fs to re-size
- new_size_bytes
- uint64_t. New size of file system in bytes, actual size might be bigger than requested and will be based on array rounding to block size,
- rfs
- Output pointer of updated lsm_fs. Might be NULL if storage system support asynchronous action on this.
- job_id
- Output pointer of string. If storage system support asynchronous action on this, a job will be created and could be tracked via lsm_job_status_fs_get. NULL if storage system does not support asynchronous action on this.
- flags
- Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
VERSION¶
1.0
DESCRIPTION¶
Resize the specified file system.
CAPABILITY¶
LSM_CAP_FS_RESIZE
RETURN¶
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_JOB_STARTED
A job is started. Please check the 'job' output pointer.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags.
* LSM_ERR_NOT_FOUND_FS
When file system not found.
* LSM_ERR_NOT_ENOUGH_SPACE
Pool does not have enough space.
* LSM_ERR_POOL_NOT_READY
Pool is not ready for volume resizing.
* LSM_ERR_NO_STATE_CHANGE
Requested size if identical to current size.
* LSM_ERR_NO_SUPPORT
Not supported.
lsm_fs_resize | May 2019 |